package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 程序设置对象 tb_setting
 *
 * @author ruoyi
 * @date 2024-09-06
 */
public class Setting extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 结束时间 单位：分钟
     */
    @Excel(name = "结束时间 单位：分钟")
    private Long endTime;

    /**
     * 结算时间
     */
    @Excel(name = "结算时间")
    private Long settleTime;

    /**
     * 价格上浮
     */
    @Excel(name = "价格上浮")
    private BigDecimal priceUp;

    /**
     * 报量提前周
     */
    private Integer doseTime;

    /**
     * 是否开启报量 0开始 1不开启
     */
    private Integer doseFlag;

    /**
     * 内容
     */
    private String content;

    /**
     * 报量开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date doseStart;
    /**
     * 报量结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date doseEnd;

    /**
     * 0正常 1删除
     */
    @Excel(name = "0正常 1删除")
    private Integer deleted;

    public Date getDoseStart() {
        return doseStart;
    }

    public void setDoseStart(Date doseStart) {
        this.doseStart = doseStart;
    }

    public Date getDoseEnd() {
        return doseEnd;
    }

    public void setDoseEnd(Date doseEnd) {
        this.doseEnd = doseEnd;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getDoseTime() {
        return doseTime;
    }

    public void setDoseTime(Integer doseTime) {
        this.doseTime = doseTime;
    }

    public Integer getDoseFlag() {
        return doseFlag;
    }

    public void setDoseFlag(Integer doseFlag) {
        this.doseFlag = doseFlag;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setSettleTime(Long settleTime) {
        this.settleTime = settleTime;
    }

    public Long getSettleTime() {
        return settleTime;
    }

    public void setPriceUp(BigDecimal priceUp) {
        this.priceUp = priceUp;
    }

    public BigDecimal getPriceUp() {
        return priceUp;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("endTime", getEndTime())
                .append("settleTime", getSettleTime())
                .append("priceUp", getPriceUp())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .toString();
    }
}
